﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="Admin_WxUser_List" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">

    <link href="../css/plugins/footable/footable.core.css" rel="stylesheet" />

    <link href="../50/style.css" rel="stylesheet" />


        
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>
 <style>
 .msgtable td{
	padding:0px;
}
</style>
</head>
<body>
    <form id="form1" runat="server" class="form-horizontal m-t">
    <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>
                            内容管理</h5>
                        
                   
                        <div class="ibox-tools">
                            <a href="List.aspx" class="btn btn-primary btn-xs"><i class="fa fa-refresh"> &nbsp;&nbsp; 刷 新</i></a>
                            <!--a href="#" id="Add" class="btn btn-primary btn-xs"><i class="fa fa-plus"></i>&nbsp;&nbsp; 新增内容</!--a-->

                      </div>
                    </div>
                    <div class="ibox-content">
                      
                         <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
                            <HeaderTemplate>
                                <table class="footable table table-stripped toggle-arrow-tiny" >
                                    <thead>
                                        <tr>
                                            <th align="center">选择</th>
                                            <th align="center">昵称</th>
                                            <th align="center">等级</th>
                                            <th align="center">头像</th>     
                                            <th align="center">注册时间 </th>       
                                            <th align="center">登录时间 </th>     
                                            <th align="center">状态 </th>   
                                                                                                               
                                        </tr>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="gradeX">

          <td ><asp:CheckBox ID="cb_id" CssClass="checkbox i-checks" runat="server" Text='<%#Eval("NId")%>' /></td>
        
         <td ><%# Eval("NickName")%></td>
           <td  ><%#Eval("Leve")%></td>
          <td  ><img src='<%#Eval("HeadImg")%>' width="50" height="50" /></td>
         <td  ><%#string.Format("{0:g}", Eval("RegTime"))%></td>
        <td  ><%#string.Format("{0:g}", Eval("LastLoginTime"))%></td>
        <td>
        <a onclick=EditAdmin('<%#Eval("NId")%>') class="btn btn-info btn-xs"><i class="fa fa-pencil"></i>修改</a> 
         <asp:LinkButton ID="ibtnlock" CommandName="ibtnLock" runat="server"  CommandArgument='<%#Eval("NId")%>'><%# Convert.ToInt32(Eval("State"))==1? "<span class='btn btn-danger btn-xs'><i class=fa fa-lock></i>锁定状态</span>" : "<span class='btn btn-info btn-xs'><i class='fa fa-check'></i>正常状态</span>"%></asp:LinkButton> &nbsp;
        
        </td>
       

                              

                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody>
       
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>


                        
 <webdiyer:AspNetPager ID="AspNetPager1"  runat="server"  PageSize="10"  FirstPageText="首页"  LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" AlwaysShow="true"  onpagechanging="AspNetPager1_PageChanging" CssClass="paginator"   CurrentPageButtonClass="cpb">

         </webdiyer:AspNetPager>
     <div class="spClear"></div>
      <div style="line-height:30px;height:30px;">
            <div id="Pagination" class="right flickr"></div>
            <div class="left">
                <span class="btn_all" id="btn1">全选</span>
                <span class="btn_all" id="btn2">取消</span>
                <span class="btn_all" id="btn3">复制</span>
                <span class="btn_all" id="btn4">移动</span>
                <%--<span class="btn_all" id="btn5">删除</span>--%>
            </div>
	</div>


                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>



      <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->

    <script src="../js/plugins/footable/footable.all.min.js" type="text/javascript"></script>
    <script src="../js/content.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>

        <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green'

            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function () { $(".footable").footable(); });
    </script>
    <script type="text/javascript">
 

        $(function () {
            $("#Add").click(function () {

            parent.layer.open({
                    type: 2,
                    title: '添加新内容',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['100%', '100%'],
                    content: 'Add.aspx',  //iframe的url
                    end: function () {

                        location.reload();

                    }
                });

            });

        });



        function EditNew(ID)
       {
            parent.layer.open({
               type: 2,
               title: '修改内容',
               shadeClose: true,
               shade: 0.8,
               area: ['100%', '100%'],
               content: 'Add.aspx?id=' + ID,  //iframe的url
               end: function () {

                   location.reload();

               }
           });
       }

        function EditAdmin(ID) {
            layer.open({
                type: 2,
                title: '修改权限',
                shadeClose: true,
                shade: 0.8,
                area: ['90%', '80%'],
                content: 'WXAdd.aspx?id=' + ID,  //iframe的url
                end: function () {

                    location.reload();

                }
            });
        }
    </script>
</body>
</html>
